package com.dhecp.project.finance.mapper;

import com.dhecp.core.genericDao.GenericDao;
import com.dhecp.project.finance.domain.TcwCapitalRegisterClaim;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 资金登记认领表
 */

public interface TcwCapitalRegisterClaimMapper extends GenericDao<TcwCapitalRegisterClaim, String> {

	
	/**
	 * 通过传入的条件查询基础数据列表
	 */
	List<TcwCapitalRegisterClaim> findInfoList(Map<String, Object> params);

	
	/**
	 * 删除
	 */
	int deleteById(@Param("id") Long id);


	/**
	 * 删除
	 */
	int deleteByCapitalRegisterSonId(@Param("capitalRegisterSonId") Long capitalRegisterSonId);

	
	/**
	 * 认领后修改信息
	 */
	int updateByCapital(TcwCapitalRegisterClaim tcwCapitalRegisterClaim);


	/**
	 * 删除认领申请后修改信息
	 */
	int updateByDelCapital(TcwCapitalRegisterClaim tcwCapitalRegisterClaim);

	/**
	 * 认领申请审批回退时修改信息
	 */
	int updateByCapitalFlowBack(TcwCapitalRegisterClaim tcwCapitalRegisterClaim);


	/**
	 * 认领表单弹出框的资金登记认领表信息查询
	 */
	List<TcwCapitalRegisterClaim> findInfoListByCapitalSelectModel(Map<String, Object> params);


	/**
	 * 验证是否已被认领
	 */
	List<TcwCapitalRegisterClaim> checkHasChoosed(@Param("id") Long id);

}
